var systemOpenCityFunction = function(){
    var whereI = $("input[name='where']").val();
    $.ajax({
        url:"cityWeb/findProvinceOpen.json",
        type:'POST',
        dataType:"json",
        data:{
            where:whereI
        },
        success:function(result){
            var tem = "";
            $.each( result.byProvinceList, function(index, content){
                tem += "<p>" +
                    "<span>"+content.name+"</span><em>";
                var byCityList = content.byCityList;
                if(byCityList != null){
                    $.each(byCityList, function(index, content){
                        tem += '<a href="#" onclick="goHome(\''+content.name+'\')">'+content.name+"</a>";
                    });
                }
                tem += "</em></p>";
            });
            $("#systemAddressOpenCity").empty();
            $("#systemAddressOpenCity").append(tem);
        },
        error:function(){
            hintsPValueFucntion("请求失败");
        }
    });
}();
function goHome(city) {
    $("#mainCity span").html(city);
    showMainCity = city;
    navPills('indexHtml');
}